import { createRouter, createWebHistory } from 'vue-router';
import Home from '../components/Home.vue';
import CardView from '../components/CardView.vue';
import MBTITest from '../components/MBTITest.vue';

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/view-card',
    name: 'CardView',
    component: CardView
  },
  {
    path: '/mbti-test',
    name: 'MBTITest',
    component: MBTITest,
    meta: {
      title: 'MBTI职业测评'
    }
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router; 